﻿namespace GoodAdmin.System;
/// <summary>
/// 文件表
///</summary>
[SugarTable("sys_file", TableDescription = "文件表")]
public class SysFile : BaseEntity
{
    /// <summary>
    /// 存储引擎 
    ///</summary>
    [SugarColumn(ColumnName = "Engine", ColumnDescription = "存储引擎", Length = 32)]
    public string Engine { get; set; }

    /// <summary>
    /// 存储文件夹 
    ///</summary>
    [SugarColumn(ColumnName = "EnginePath", ColumnDescription = "存储文件夹", Length = 32)]
    public string EnginePath { get; set; }
    /// <summary>
    /// 文件名称 
    ///</summary>
    [SugarColumn(ColumnName = "Name", ColumnDescription = "文件名称")]
    public string FileName { get; set; }
    /// <summary>
    /// 文件后缀 
    ///</summary>
    [SugarColumn(ColumnName = "Suffix", ColumnDescription = "文件后缀", Length = 32)]
    public string Suffix { get; set; }
    /// <summary>
    /// 文件大小kb 
    ///</summary>
    [SugarColumn(ColumnName = "SizeKb", ColumnDescription = "文件大小kb")]
    public long SizeKb { get; set; }
    /// <summary>
    /// 文件大小（格式化后） 
    ///</summary>
    [SugarColumn(ColumnName = "SizeInfo", ColumnDescription = "文件大小（格式化后）", Length = 64)]
    public string SizeInfo { get; set; }
    /// <summary>
    /// 文件的对象名（唯一名称） 
    ///</summary>
    [SugarColumn(ColumnName = "ObjName", ColumnDescription = "文件的对象名（唯一名称）", Length = 255)]
    public string ObjName { get; set; }
    /// <summary>
    /// 文件存储路径 
    ///</summary>
    [SugarColumn(ColumnName = "StoragePath", ColumnDescription = "文件存储路径", Length = 255)]
    public string StoragePath { get; set; }
    /// <summary>
    /// 图片缩略图 
    ///</summary>
    [SugarColumn(ColumnName = "Thumbnail", ColumnDescription = "图片缩略图", IsNullable = true, ColumnDataType = StaticConfig.CodeFirst_BigString)]
    public string Thumbnail { get; set; }
    /// <summary>
    /// 文件存储绝对路径 
    ///</summary>
    [SugarColumn(ColumnName = "FilePath", ColumnDescription = "文件存储绝对路径", IsNullable = true, Length = 255)]
    public string FilePath { get; set; }
}